using Google.Protobuf;
using Google.Protobuf.Reflection;
using ServerProtocol;
using UnityEngine;

public class NewMonoBehaviourScript : MonoBehaviour
{
    

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        
        // 获取字段描述符
        var fieldDescriptor = LoginRequest.Descriptor.FindFieldByName("Protocol");
        
        // 获取自定义选项的值
        var customOptionValue = 
            fieldDescriptor.GetOptions().GetExtension(ServerProtocolExtensions.ProtocolValue);
        // 获取自定义选项的值
        var customOptionValue1 =
            fieldDescriptor.GetOptions().GetExtension(ServerProtocolExtensions.ProtocolId);
    }

    // Update is called once per frame
    void Update()
    {
    }
}